/* 
 * shamefully copy from AnFetion.
 * more see: http://code.google.com/p/anfetion/
 */
package person.bangbang.im.Androidgin.Fetion;

public class FrameWork {
	public static boolean synchronizedwait(Object o,int timeout)
	{
		synchronized(o){
			try {
				o.wait(timeout);
				return true;
			} catch (InterruptedException e) {
				e.printStackTrace();
				return false;
			}
		}
	}
	public static void synchronizednotify(Object o)
	{
		synchronized(o){
			o.notifyAll();
		}
	}
}
